package com.company.beauty.common.constants;

/**
 * <p>bean conditional constants</p >
 *
 * @author youyoukele
 * @version 1.0
 * @date 2023/11/20 16:22
 * <p>
 *      @Slf4j
 *      @Configuration
 *      @ConditionalOnProperty(prefix = BeanConditionalConstants.Prefix.COMMON_ASYNC, name = BeanConditionalConstants.FieldName.ENABLED, havingValue = "true", matchIfMissing = true)
 *      @EnableAsync
 *      public class AsyncConfiguration {
 *          @Bean
 *          public AsyncConfigurer asyncConfigurer(){
 *              log.info("common handler async configurer support!!!");
 *              return new AsyncConfigurerSupport();
 *          }
 *      }
 * </p>
 */
public interface BeanConditionalConstants {

    interface Prefix {

        String COMMON_ASYNC = "common.async";

        String COMMON_JACKSON = "common.jackson";

        String COMMON_PLATFORM = "common.platform";

    }

    interface FieldName {

        String ENABLED = "enabled";

    }

}
